﻿<%@ Page Title="企业用户列表-首家汽车行业人才测评系统" Language="C#" MasterPageFile="~/System/SiteSystem.Master"
    AutoEventWireup="true" CodeBehind="EnterpriseUserList.aspx.cs" Inherits="EvaluationSystem.EnterpriseUserList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="grVEnterpriseList" runat="server" AutoGenerateColumns="False" CellPadding="4"
        DataKeyNames="users_id" ForeColor="#333333" GridLines="None" Width="100%"
        AllowSorting="True" OnSorting="grVEnterpriseList_Sorting">
        <FooterStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <asp:CheckBox ID="CB_Select" runat="server" AutoPostBack="false" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField DataField="users_id" HeaderText="登录ID" ReadOnly="True" Visible="false" />
            <asp:BoundField DataField="users_name" HeaderText="登录名">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="users_incname" HeaderText="公司名称">
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="25%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="users_firstlogontime" HeaderText="初次使用时间" ReadOnly="true"
                SortExpression="users_firstlogontime">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="users_totalconsumemoney" HeaderText="累积费用" SortExpression="users_totalconsumemoney"
                DataFormatString="{0:C}">
                <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Width="15%" Wrap="False" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="users_id" HeaderText="项目管理" DataNavigateUrlFormatString="ActivityList.aspx?users_id={0}"
                Text="管理">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="users_id,users_name,users_incname,users_phone,users_contact"
                HeaderText="编辑" DataNavigateUrlFormatString="AddEnterpriseUser.aspx?users_id={0}&users_name={1}&users_incname={2}&users_phone={3}&users_contact={4}"
                Text="编辑">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" Wrap="False" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="users_id" HeaderText="跳转" DataNavigateUrlFormatString="..\Enterprise\ManageActivity.aspx?UID={0}"
                Text="跳转" Target="_blank">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" Wrap="False" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="users_contact" HeaderText="联系人">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="users_phone" HeaderText="电话">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:BoundField>
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EmptyDataTemplate>
            对不起，没有当前的查询记录存在!
        </EmptyDataTemplate>
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:CheckBox ID="CB_SelectAll" runat="server" AutoPostBack="true" OnCheckedChanged="CB_SelectAll_CheckedChanged"
        Text="全选" />&nbsp;
    <asp:Button ID="btnNew" runat="server" Text="新建用户" OnClick="btnNew_Click" />
    <asp:Button ID="btnDelete" runat="server" Text="删除" OnClientClick="return confirm('确认删除这些记录?');"
        OnClick="btnDelete_Click" />
</asp:Content>
